﻿using System;
using System.Collections.Generic;
using System.Text;

using OpenSocialPlugin.Properties;
using OpenSocialPlugin.General;

namespace OpenSocialPlugin
{
    public static class StaticHelper
    {
        static public ISocialSite SiteProvider;
        static public OSP_Person SelectedPerson = new OSP_Person();
        static public Settings settings = new Settings();
        static public List<ISocialSite> Providers = new List<ISocialSite>();

        static public string GetLocalImageFileName(string strURL)
        {
            if (strURL == "")
                return string.Empty;
            string url = String.Format("opensocial-{0}.jpg", MediaPortal.Util.Utils.EncryptLine(strURL));
            return System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache), url); ;
        }
    }
}
